$baseColor: yellowgreen;

@mixin bgc {
  background-color: blue;
}

div {
  width: 200px;
  height: 200px;
  background-color: pink;
  p {
    background-color: cyan;
    color: $baseColor;
  }
  span {
    @include bgc;
  }
}